package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Together;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TogetherMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Together together);

    Together selectByPrimaryKey(Long id);

    List<Together> selectAll();

    int updateByPrimaryKey(Together together);

    List<Together> queryForList(QueryObject qo);

    void updateState(Together together);

    //全局搜索数量
    int selectForCount(QueryObject qo);

    //全局搜素
    List<Together> query(QueryObject qo);

    //点击浏览量
    void updateBrowseNum(Together together);

    int selectTogethersNums(@Param("userId") Long userId);

}